derivation of demand curve from revealed preference hypothesis